<?php
/* @var $this EmployeeController */
/* @var $model Employee */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'employee-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'First Name:'); ?>
		<?php echo $form->textField($model,'fname',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'fname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Last Name:'); ?>
		<?php echo $form->textField($model,'lname',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'lname'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Middle Initial: '); ?>
		<?php echo $form->textField($model,'mi',array('size'=>4,'maxlength'=>4)); ?>
		<?php echo $form->error($model,'mi'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Address Number: '); ?>
		<?php echo $form->textField($model,'address_no'); ?>
		<?php echo $form->error($model,'address_no'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Street Address:'); ?>
		<?php echo $form->textField($model,'address_street',array('size'=>60,'maxlength'=>80)); ?>
		<?php echo $form->error($model,'address_street'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'City Address:'); ?>
		<?php echo $form->textField($model,'address_city',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'address_city'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Zip Code:'); ?>
		<?php echo $form->textField($model,'address_zip'); ?>
		<?php echo $form->error($model,'address_zip'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Work Phone Number: '); ?>
		<?php echo $form->textField($model,'work_phone'); ?>
		<?php echo $form->error($model,'work_phone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'Home Phone Number'); ?>
		<?php echo $form->textField($model,'home_phone'); ?>
		<?php echo $form->error($model,'home_phone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'User Id:'); ?>
		<?php echo $form->textField($model,'user_id'); ?>
		<?php echo $form->error($model,'user_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->